{# 继承父类模板 #}
{% extends 'templates/LR/base.html' %}
{% load static %}
{% load common_extras %}
{# 重写模块，定义页面个性化内容 #}
{% block header %}
    {% include 'templates/LR/header.html' %}
{% endblock %}

{% block link %}
    <link rel="stylesheet" href="{% static 'css/LR/index.css' %}">
{% endblock %}

{% block detail %}
    {% if resources %}
        {% for resource in resources %}
        	<li>
                <a href="#">
                    <div class="left">
                        <img src="/static/media/img/{{ resource.cover }}" alt="图片跑了">
                    </div>
                    <div class="right">
                        <h4>{{  forloop.counter}}、{{ resource.title }}</h4>
                    </div>
                    <p class="desc">{{ resource.desc }}</p>
                    <p class="info">发布时间:{{ resource.create_time }}</p>
                </a>
            </li>
            {% if forloop.last %}
            	<div class="bottom_info">
                    到底啦~~~
                </div>
            {% endif %}

        {% endfor %}
    {% else %}
        <div class="bottom_info"></div>
    {% endif %}
{% endblock %}

{% block main %}
    {% include 'templates/LR/LR_main.html' %}
{% endblock %}




